package com.example.xunua_today_in_history.utils;

public class ContentURL {


//   获取指定日期对应的历史上的今天的网址
    public static String getTodayHistoryURL(String version,int month,int day){
        String todayHistoryURL = "http://api.juheapi.com/japi/toh?key=12b9ab951da2f6a866f9c319b471f77b&v="+version+"&month="+month+"&day="+day;
        return todayHistoryURL;
    }

//    获取指定日期老黄历的网址
    public static String getLaohuangliURL(String  time){
        String url = "http://v.juhe.cn/laohuangli/d?date="+time+"&key=43402b64727c2a5958b65383296666ac";
        return url;
    }

//    根据事件id获取到指定事件详情信息
    public static String getHistoryDescURL(String version,String id){
        String url = "http://api.juheapi.com/japi/tohdet?key=12b9ab951da2f6a866f9c319b471f77b&v="+version+"&id="+id;
        return url;
    }

}
